# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=liburing
pkgver=2.6
pkgrel=0
pkgdesc="Linux kernel io_uring access library"
url="https://git.kernel.dk/cgit/liburing/"
arch="all"
license="LGPL-2.1-or-later OR MIT"
makedepends="linux-headers"
subpackages="liburing-ffi $pkgname-dev $pkgname-doc"
source="https://git.kernel.dk/cgit/liburing/snapshot/liburing-$pkgver.tar.gz
	"

build() {
	./configure \
		--prefix=/usr \
		--use-libc \
		--mandir=/usr/share/man
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
}

ffi() {
	amove usr/lib/liburing-ffi.so.*
}

sha512sums="
5e4b0b347619b4f26218ee851026eb3e5b523be11d1c9a7dcca65d43f07442b03e1520f12cc2fc0d39ee3d1837e266a9ca4974b695900f600705fb8e24630a37  liburing-2.6.tar.gz
"
